<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>记忆翻牌游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="game-container">
        <div class="game-header">
            <h1 class="game-title">记忆翻牌游戏</h1>
            <div class="game-stats">
                <div class="stat-item">
                    <span class="stat-label">步数:</span>
                    <span class="stat-value" id="moves">0</span>
                </div>
                <div class="stat-item">
                    <span class="stat-label">时间:</span>
                    <span class="stat-value" id="time">00:00</span>
                </div>
                <div class="stat-item">
                    <span class="stat-label">最佳成绩:</span>
                    <span class="stat-value" id="best-time">--:--</span>
                </div>
            </div>
            <button class="control-btn" id="restart-btn">重新开始</button>
        </div>
        
        <div class="game-board" id="game-board">
            <!-- 卡片将通过JavaScript动态生成 -->
        </div>
        
        <div class="game-modal" id="game-modal">
            <div class="modal-content">
                <h2>恭喜！</h2>
                <p>你完成了游戏！</p>
                <div class="modal-stats">
                    <p>用时: <span id="final-time">00:00</span></p>
                    <p>步数: <span id="final-moves">0</span></p>
                    <p id="record-message"></p>
                </div>
                <button class="control-btn" id="play-again-btn">再玩一次</button>
            </div>
        </div>
    </div>
    
    <script src="script.js"></script>
</body>
</html>